package com.example.project.projectspringcloud.service.sys;

import com.example.project.projectspringcloud.common.OperationException;
import com.example.project.projectspringcloud.entity.Page;
import com.example.project.projectspringcloud.entity.sys.Area;

import java.util.List;

public interface SysAreaService {

    /**
     * 获取地区列表
     * ==============================================================================
     *
     * @param entity
     * @return
     */
    List<Area> list(Area entity, Page page);

    /**
     * 更改可用
     *
     * @param area
     * @return
     * @throws OperationException
     */
    boolean changeShow(Area area) throws OperationException;
}
